import request from '@/utils/request'

// 上传文件/图片
export const upload = (file) => request({
  url: '/upload',
  method: 'POST',
  data: {
    file
  },
  headers: {
    'Content-Type': 'multipart/form-data'
  }
})
